a11y: Use "presentation" role instead of "hidden" state
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 5 Nov 2020 13:19:26 +0000 (13:19 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 5 Nov 2020 13:25:53 +0000 (13:25 +0000)
commit88116712f6508ee7d48fa991ce8335b1b9d6b95b
tree09c7ae1055f669112b0e0f6cd814dfd9a7d257ec
parent7dfa41bbc48f35669859274e166c87c686e0e479
a11y: Use "presentation" role instead of "hidden" state

The intended use case of the "presentation" role is

| […] when an element is used to change the look of the page but does not
| have all the functional, interactive, or structural relevance implied
| by the element type, or may be used to provide for an accessible
| fallback in older browsers that do not support WAI-ARIA.

One of the examples is, literally:

| An element whose content is completely presentational (like a spacer
| image, decorative graphic, or clearing element);

Which fits perfectly for the GtkTreeExpander's "indent" builtin icon
widget.
gtk/gtktreeexpander.c